package com.hycat.mail.member.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author 吕泽浩业
 * @version 1.0
 */
@Data
public class RegisterParam {

    @NotBlank(message = "手机号不能为空")
    @Pattern(message = "手机号格式错误", regexp = "^[1][3,4,5,7,8,9][0-9]{9}$")
    private String mobile;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "验证码不能为空")
    private String code;
}
